<extend name="Index/index"/>
<block name='right'>
<div class="rightBody">
	<span class='title'>编辑分类</span>
	<div id="content">
		<form  class='registerform' action="<{:U('Shop/edit_handle')}>" method="post">
		<table class='table table-striped table-bordered'>
			<thead>
				<tr>
					<th width="20%">名称</th>
					<th>值</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>商铺名称</td>
					<td>
						<input type="text" name="shopname" datatype="*2-15" errormsg="长度2-15位任意字符"  nullmsg="商铺名称不能为空" sucmsg="填写正确" value="<{$datarow[shopname]}>" />
						<span class="Validform_checktip" >请输入2-15位任意字符</span>
					</td>
				</tr>
				<tr>
					<td>商铺地址</td>
					<td>
						<input type="text" name="shopaddress" datatype="*2-100" errormsg="长度2-100位任意字符"  nullmsg="商铺地址不能为空" sucmsg="填写正确" value="<{$datarow['shopaddress']}>" />
						<span class="Validform_checktip" >地址长度不能超过100个字符</span>
					</td>
				</tr>
				<tr>
					<td>地铁地址</td>
					<td>
						<input type="text" name="metroaddress" datatype="*2-100" errormsg="长度2-100位任意字符"  nullmsg="商铺地铁地址不能为空" sucmsg="填写正确" value="<{$datarow['metroaddress']}>" />
						<span class="Validform_checktip" >地铁地址长度不能超过100个字符</span>
					</td>
				</tr>
				<tr>
					<td>商铺电话</td>
					<td>
						<input type="text" name="shoptel" datatype="m" errormsg="电话格式不正确"  nullmsg="商铺电话不能为空" sucmsg="填写正确" value="<{$datarow['shoptel']}>" />
						<span class="Validform_checktip" >请输入正确的电话</span>
					</td>
				</tr>
				<tr>
					<td>商铺坐标</td>
					<td>
						<input type="text" id='shopcoord' name="shopcoord" value='<{$datarow["shopcoord"]}>'/>
						<a id='getpoint' href="javascript:" class="btn btn-info">获取坐标</a>
					</td>
				</tr>
				<input type="hidden" name="shopid" value="<{$datarow['shopid']}>">
				<tr>
					<td></td>
					<td><input type="submit" class='btn btn-primary' /></td>
				</tr>
			</tbody>
		</table>
		</form>
	</div>
</div>
</block>
